Fix regression for symlinks in bare-user repos
authorAlexander Larsson <alexl@redhat.com>
Fri, 21 Oct 2016 09:16:42 +0000 (11:16 +0200)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 21 Oct 2016 09:24:27 +0000 (09:24 +0000)
commitcf6ec1bbbcfea78a85255a6cc4e997a6aca54e73
tree661134f6cc801803ebed3cc16912f6506c8db998
parent64568bc706bc7d2e4d9814e0daa837b9ad84f009
Fix regression for symlinks in bare-user repos

Commit 1d4f1b8878addd28059c3a3928640491755cd615 started using hardlinks
checkouts of symlinks. However, symlinks are not stored as symlink in the
repo for bare-user repos, so this breaks user-mode checkouts of such repos.

We fix this by checking for !is_symlink in the bare-user case.

This fixes:
     https://github.com/ostreedev/ostree/issues/537

Closes: #538
Approved by: giuseppe
src/libostree/ostree-repo-checkout.c